<?php

	define( 'MAIN_DIR', dirname( __FILE__ ) . DIRECTORY_SEPARATOR );
	
	include( MAIN_DIR . 'include' . DIRECTORY_SEPARATOR . 'base.inc.php' );
	
	$service = ( isset( $_REQUEST['function'] ) && $_REQUEST['function'] ? $_REQUEST['function'] : null );
	if( $service && file_exists( SWAT_DIR . 'services' . DS . $service . '.php' ) )	{
		include( SWAT_DIR . 'services' . DS . $service . '.php' );
	}
	else
		header( 'HTTP/1.0 404 Not Found' );
	